var clientTests = {

    "example test": function () {

        //return true or false whether the test succeeded or failed respectively
        return true;

    },

    "another example test": function () {

        return false;

    }
};

function runTests() {

    //var testTable = $("#client-testing");

    for (var clientTest in clientTests) {

        if (clientTests[clientTest]()) {

            $('#client-testing').find('> tbody:last').append('<tr><td class="success">' + clientTest + '</td><td class="success"><img src="./images/tick.png"></td></tr>');

        } else {

            $('#client-testing').find('> tbody:last').append('<tr><td class="failure">' + clientTest + '</td><td class="failure"><img src="./images/cross.png"></td></tr>');

        }
    }
    $(".testStatus").html("Tests complete!");
}

$(document).ready(function () {

    runTests();

});